#include <func.h>
//制造僵尸进程
int main()
{
    pid_t pid;
    pid=fork();
    if(0==pid)
    {
        printf("i am child,pid=%d,ppid=%d\n",getpid(),getppid());
        return 0;
    }else{
        printf("i am parent,,mychildpid=%d,pid=%d,ppid=%d\n",pid,getpid(),getppid());
        while(1);
        return 0;
    }
}